package com.easy.dao;

import com.easy.bean.User;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IUserDao {
    List<User> getUserByUsername(String username);
    User getUser(int id);

    int editUser(User user);

    List<User> searchUser(@Param("user") User user, @Param("page") Page page);

    int getCount(@Param("user")User user);

    int addUser(User user);


}
